<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="./css/newslist.css"/>
    <script src="./js/vue.min.js"></script>
    <script src="./js/vue-resource.js"></script>

</head>
<body >

<div id="app" :class="'newsContent'">
    <table>
        <thead>
        <tr>
            <th>文章标题</th>
            <th>作者</th>
            <th>内容</th>
            <th>类型</th>
            <th>浏览量</th>
            <th>创建日期</th>
            <th>修改</th>
            <th>删除</th>
        </tr>
        </thead>
        <tbody>
        <tr v-for="news in newsList">
            <td>{{ news.title }}</td>
            <td>{{ news.author }}</td>
            <td>{{ news.content }}</td>
            <td>{{ news.type }}</td>
            <td>{{ news.pv }}</td>
            <td>{{ news.created_at }}</td>
            <td :class="'text-center'"><button @click="deletePerson($index)">修改</button></td>
            <td :class="'text-center'"><button @click="deletePerson($index)">删除</button></td>
        </tr>
        </tbody>
    </table>

</div>



<script src="./js/newslist/newslist.js"></script>

</body>
</html>